﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace JavaToNSD
{
    public partial class Mail : Form
    {
        public Mail(string inhalt)
        {
            InitializeComponent();
            richTextBox1.Text = inhalt;
            textBox1.Text = "Fehler:";
        }
        public Mail(string inhalt, string betreff)
        {
            InitializeComponent();
            richTextBox1.Text = inhalt;
            textBox1.Text = betreff;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Text = textBox1.Text;
            this.Tag = richTextBox1.Text;
            this.DialogResult = System.Windows.Forms.DialogResult.OK;
            this.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.Close();
        }
    }
}
